package com.sj.uabrowser.db;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;

import java.io.Serializable;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Transient;

@Entity
public class CollectHistory implements Serializable{

    public static final long serialVersionUID = 0L;

    public static final int TYPE_NET = 1;
    public static final int TYPE_NEWS = 2;
    public static final int TYPE_VIDEO = 3;
    public static final int TYPE_KEYWORDS = 4;


    @Id(autoincrement = true)
    private Long id;
    private String url;
    private String title;
    private int type;//1.网址  2. 新闻  3. 视频
    private long date;
    private boolean isHis;//历史
    private boolean isLike;//收藏

    @Transient
    private String time;
    @Transient
    private boolean isHeader;
    @Transient
    private boolean isChecked;

    public boolean isChecked() {
        return isChecked;
    }

    public void setChecked(boolean checked) {
        isChecked = checked;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public boolean isHeader() {
        return isHeader;
    }

    public void setHeader(boolean header) {
        isHeader = header;
    }

    @Generated(hash = 190257228)
    public CollectHistory(Long id, String url, String title, int type, long date,
            boolean isHis, boolean isLike) {
        this.id = id;
        this.url = url;
        this.title = title;
        this.type = type;
        this.date = date;
        this.isHis = isHis;
        this.isLike = isLike;
    }
    @Generated(hash = 227749427)
    public CollectHistory() {
    }
    public Long getId() {
        return this.id;
    }
    public void setId(Long id) {
        this.id = id;
    }
    public String getUrl() {
        return this.url;
    }
    public void setUrl(String url) {
        this.url = url;
    }
    public String getTitle() {
        return this.title;
    }
    public void setTitle(String title) {
        this.title = title;
    }
    public int getType() {
        return this.type;
    }
    public void setType(int type) {
        this.type = type;
    }
    public long getDate() {
        return this.date;
    }
    public void setDate(long date) {
        this.date = date;
    }
    public boolean getIsHis() {
        return this.isHis;
    }
    public void setIsHis(boolean isHis) {
        this.isHis = isHis;
    }
    public boolean getIsLike() {
        return this.isLike;
    }
    public void setIsLike(boolean isLike) {
        this.isLike = isLike;
    }


}
